.login-container {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-ultra-light) 0%, var(--background-secondary) 100%);
}

.login-card {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-3xl);
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.login-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.login-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: var(--spacing-xl);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form control styles use global CSS - only keep login-specific overrides */
.form-control {
  border: 2px solid var(--border-color);
  font-size: 1rem;
}

/* Validation States */
.form-control.ng-invalid.ng-touched {
  border-left: 5px solid var(--danger-color);
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.ng-valid.ng-touched {
  border-left: 5px solid var(--success-color);
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.ng-invalid.ng-touched:focus {
  border-left: 5px solid var(--danger-color);
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control.ng-valid.ng-touched:focus {
  border-left: 5px solid var(--success-color);
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Input Icons */
.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.input-group .form-control {
  padding-left: calc(var(--spacing-md) + 24px);
}

.input-group .form-control:focus + .input-icon {
  color: var(--primary-color);
}

/* Submit Button */
.login-submit {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: var(--spacing-lg);
}

/* Removed complex pseudo-element shine effect */

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.login-submit:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Error Messages */
.error-message {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.error-centered {
  margin-top: var(--spacing-lg);
  justify-content: center;
}

.error-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Success Messages */
.success-message {
  color: var(--success-color);
  font-size: 0.875rem;
  margin-top: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Forgot Password Link */
.forgot-password {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.forgot-password a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.forgot-password a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Loading State */
.login-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Demo Info */
.demo-info {
  background: var(--primary-ultra-light);
  border: 1px solid var(--primary-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.demo-info h4 {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.demo-info p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-container {
    padding: var(--spacing-md);
  }
  
  .login-card {
    padding: var(--spacing-xl);
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .login-subtitle {
    font-size: 0.875rem;
  }
}

/* Animation */
.login-card {
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus ring for accessibility */
.form-control:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}